<%@ page language="java" isELIgnored="false" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>resumeList</title>
    <script type="text/javascript" src="/js/jquery.min.js"></script>
</head>
    <script>
        function updateResume(id) {
            location.href = '/resume/updateResumePage?id='+id;
        }
        function delResume(id) {
            location.href = '/resume/delResume?id='+id;
        }
        function addResume(){
            location.href = '/resume/addResume';
        }

    </script>
<body>
<tr>
    <input type="button" value="新增" onclick="addResume();"/>
</tr>
<tr>
    <th>address</th>
    <th>name</th>
    <th>phone</th>
    <th>操作</th>
</tr>
<c:forEach items="${resumeList}" var="resume">
    <tr>
        <td>${resume.address}</td>
        <td>${resume.name}</td>
        <td>${resume.phone}</td>
        <td>
            <a href="javascript:updateResume(${resume.id});" >修改</a>&nbsp;&nbsp;&nbsp;
            <a href="javascript:delResume(${resume.id});" >删除</a>
        </td>
    </tr>
</c:forEach>
</body>
</html>